// 角色管理api
import request from '@/utils/request'
//登录
export function login (data) {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}
//获取用户信息
export function getInfo () {
  return request({
    url: '/system/user/getCurrentUserInfo',
    method: 'get'
  })
}
//退出
export function logout () {
  return request({
    url: '/auth/logout',
    method: 'get'
  })
}
